The DevOps 2.1 Toolkit: Docker Swarm: Building, testing, deploying, and monitoring services inside Docker Swarm clusters (The DevOps Toolkit Series) by Viktor Farcic
Author:Viktor Farcic [Farcic, Viktor]
Language: eng
Format: azw3
Publisher: leanpub.com
Published: 2017-01-22T05:00:00+00:00
Now we can create the service.
1 docker service create \ 2 --name prometheus \ 3 --network proxy \ 4 -p 9090:9090 \ 5 --mount "type=bind,source=$PWD/conf/prometheus.yml,target=/etc/prometheus/pr\ 6 ometheus.yml" \ 7 --mount "type=bind,source=$PWD/docker/prometheus,target=/prometheus" \ 8 prom/prometheus:v1.2.1 9 10 docker service ps prometheus
We created the docker/prometheus directory where we’ll persist Prometheus state.
The service is quite ordinary. It is attached to the proxy network, exposes the port 9090, and mounts the configuration file and the state directory.
The output of the service ps command is as follows (IDs are removed for brevity).
1 NAME IMAGE NODE DESIRED STATE CURRENT STATE \ 2 ERROR 3 prometheus.1 prom/prometheus:v1.2.1 swarm-3 Running Running 59 seconds\ 4 ago
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27123)
Hello! Python by Anthony Briggs(25975)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25313)
Kotlin in Action by Dmitry Jemerov(24417)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23613)
Dependency Injection in .NET by Mark Seemann(23332)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21964)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20870)
Grails in Action by Glen Smith Peter Ledbrook(19889)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17084)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16851)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14479)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12601)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11877)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10662)
Hit Refresh by Satya Nadella(9259)
The Kubernetes Operator Framework Book by Michael Dame(8600)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8455)
Robo-Advisor with Python by Aki Ranin(8394)